﻿using DevelopTool.Model.Enums;
using System;

namespace DevelopTool.Model.CommonModels
{
    /// <summary>
    /// 监控日志实体
    /// </summary>
    public class LogModel
    {
        public LogModel()
        {

        }

        public LogModel(LogType logType, string logStr)
        {
            LogType = logType;
            LogStr = logStr;
            OperTime = DateTime.Now;
        }

        /// <summary>
        /// 操作时间
        /// </summary>
        public DateTime OperTime { get; set; } = DateTime.Now;

        /// <summary>
        /// 日志文本
        /// </summary>
        public string LogStr { get; set; }

        /// <summary>
        /// 日志类型 1=info 信息， 2=Warning 警告， 3=error 异常
        /// </summary>
        public LogType LogType { get; set; }
    }
}
